Optimal. Leaf size=31 \[ \log (x+2) (d-2 e+4 f)+x (e-4 f)+\frac{1}{2} f (x+2)^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0522829, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 36, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.056, Rules used = {1586, 698} \[ \log (x+2) (d-2 e+4 f)+x (e-4 f)+\frac{1}{2} f (x+2)^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1586
Rule 698
Rubi steps
\begin{align*} \int \frac{\left (d+e x+f x^2\right ) \left (2-x-2 x^2+x^3\right )}{4-5 x^2+x^4} \, dx &=\int \frac{d+e x+f x^2}{2+x} \, dx\\ &=\int \left (e-4 f+\frac{d-2 e+4 f}{2+x}+f (2+x)\right ) \, dx\\ &=(e-4 f) x+\frac{1}{2} f (2+x)^2+(d-2 e+4 f) \log (2+x)\\ \end{align*}
Mathematica [A] time = 0.0117812, size = 30, normalized size = 0.97 \[ \log (x+2) (d-2 e+4 f)+\frac{1}{2} (x+2) (2 e+f (x-6)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.002, size = 35, normalized size = 1.1 \begin{align*}{\frac{f{x}^{2}}{2}}+ex-2\,fx+\ln \left ( 2+x \right ) d-2\,\ln \left ( 2+x \right ) e+4\,\ln \left ( 2+x \right ) f \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03464, size = 36, normalized size = 1.16 \begin{align*} \frac{1}{2} \, f x^{2} +{\left (e - 2 \, f\right )} x +{\left (d - 2 \, e + 4 \, f\right )} \log \left (x + 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.46327, size = 73, normalized size = 2.35 \begin{align*} \frac{1}{2} \, f x^{2} +{\left (e - 2 \, f\right )} x +{\left (d - 2 \, e + 4 \, f\right )} \log \left (x + 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.28747, size = 26, normalized size = 0.84 \begin{align*} \frac{f x^{2}}{2} + x \left (e - 2 f\right ) + \left (d - 2 e + 4 f\right ) \log{\left (x + 2 \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09603, size = 41, normalized size = 1.32 \begin{align*} \frac{1}{2} \, f x^{2} - 2 \, f x + x e +{\left (d + 4 \, f - 2 \, e\right )} \log \left ({\left | x + 2 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]